import request from '@/utils/request'

export const loginApi = ({ username, password }) => {
  return request.post('/park/login', { username, password })
}

export const updatePasswordApi = ({ oldPassword, newPassword }) => request({
  url: '/park/profile/updatePwd',
  method: 'put',
  data: {
    oldPassword,
    newPassword
  }
})
